package com.earl.gsm.domain.gsm.equipment;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

import javax.persistence.Table;

import com.earl.gsm.commons.domain.AbstractAuditingEntity;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * 器材租借表实体类 Created by fv on 2016/6/3.
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "RentTable")
public class RentTable extends AbstractAuditingEntity<Long> implements Serializable {

	// 订单编号
	private Long id;

	// 器材/数量（key/value)(使用JSON格式存储)
	private String rentOption;

	// 租借人
	/* private Long userId; */

	// 使用时间段
	private String scheduledTime;

	// 审核状态
	private String status;

	// 归还时间
	private String returnTime;

	// 负责人
	private String principal;

	// 器材/损坏数量
	private String damageOption;

	// 完全损坏数量
	private String damageAll;

	// 金额
	private float money;

	

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getRentOption() {
		return rentOption;
	}

	public void setRentOption(String rentOption) {
		this.rentOption = rentOption;
	}

	public String getScheduledTime() {
		return scheduledTime;
	}

	public void setScheduledTime(String scheduledTime) {
		this.scheduledTime = scheduledTime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getReturnTime() {
		return returnTime;
	}

	public void setReturnTime(String returnTime) {
		this.returnTime = returnTime;
	}

	public String getPrincipal() {
		return principal;
	}

	public void setPrincipal(String principal) {
		this.principal = principal;
	}

	public String getDamageOption() {
		return damageOption;
	}

	public void setDamageOption(String damageOption) {
		this.damageOption = damageOption;
	}

	public String getDamageAll() {
		return damageAll;
	}

	public void setDamageAll(String damageAll) {
		this.damageAll = damageAll;
	}

	public float getMoney() {
		return money;
	}

	public void setMoney(float money) {
		this.money = money;
	}

	@Override
	public String toString() {
		return "RentTable [id=" + id + ", rentOption=" + rentOption + ", scheduledTime=" + scheduledTime
				+ ", status=" + status + ", returnTime=" + returnTime + ", principal=" + principal + ", damageOption="
				+ damageOption + ", damageAll=" + damageAll + ", money=" + money + "]";
	}


}
